#ifndef PEAKGROUP_H
#define PEAKGROUP_H

#include "peakwidget.h"

class PeakGroup : public QObject
{
    Q_OBJECT
public:
    explicit PeakGroup(QWidget *parent = nullptr);
    QVector<PeakWidget *> peaks() const;
public slots:
    void refresh();
    void inputNameUpdated();
    void outputNameUpdated();
private:
    QStringList getList(const int &count, const QString &text) const;
    QStringList inputNames() const;
    QStringList outputNames() const;
private:
    QVector<PeakWidget *> m_peaks;
};

#endif // PEAKGROUP_H
